package slt.Model;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import java.util.Date;

/**
 *
 * @author Robbert Stevens
 */
public class Message {
    private long messageId;
    private String message;
    private User messagedBy;
    private Date date;
    private String username;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
    
    public Message() {
    }
    
    public Message(long messageId) {
        this.messageId = messageId;
    }

    /**
     * @return the messageId
     */
    public long getMessageId() {
        return messageId;
    }

    /**
     * @param messageId the messageId to set
     */
    public void setMessageId(long messageId) {
        this.messageId = messageId;
    }

    /**
     * @return the message
     */
    public String getMessage() {
        return message;
    }

    /**
     * @param message the message to set
     */
    public void setMessage(String message) {
        this.message = message;
    }

    /**
     * @return the messagedBy
     */
    public User getMessagedBy() {
        return messagedBy;
    }

    /**
     * @param messagedBy the messagedBy to set
     */
    public void setMessagedBy(User messagedBy) {
        this.messagedBy = messagedBy;
    }

    /**
     * @return the date
     */
    public Date getDate() {
        return date;
    }

    /**
     * @param date the date to set
     */
    public void setDate(Date date) {
        this.date = date;
    }
}
